import Ora from 'ora';
export const buildLogger = (startText = '') => {
    const logger = Ora().start(startText);
    return logger;
};
export const getFileExtension = (filename) => {
    const ext = filename.substring(filename.lastIndexOf('.') + 1, filename.length);
    if (filename === ext)
        return undefined;
    return ext;
};
export const maybeFixMissingWindowsEnvVar = () => {
    if (process.platform === 'win32' &&
        !('SYSTEMROOT' in process.env) &&
        'SystemRoot' in process.env) {
        process.env.SYSTEMROOT = process.env.SystemRoot;
    }
};
